home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / Multimedia / Fractal! 1.3.3 ƒ / Fractal! 1.3.3 / Fractal! 1.3.3.rsrc / TEXT_300_Script.txt < prev    next >
Text File  |  1994-08-17  |  2KB  |  36 lines

  1. The Script‚Ķ command allows the input of a script file (type TEXT) which will allow a series of images to be generated and saved to disk as either a QuickTime movie or as a series of PICT files. 
  2.  
  3. Upon issuing the command, a Standard GetFile dialog box is displayed requesting the name of the Script file which will control the animation.   Once that file has been selected, a Standard PutFile dialog will appear requesting the name of the output file and the format to be output, either QuickTime movie or PICT¬†files.  If QuickTime is not present in the system, that choice will be disabled and the PICT files choice will be selected.  Otherwise QuickTime will be the default choice.  If PICT¬†files are chosen, the filename entered in the dialog will have a 3 digit number appended to it that is incremented for each image saved.  If QuickTime movie is chosen, the program will present the QuickTime compression settings dialog allowing the user to select the desired compression technique.
  4.  
  5. The following are the variables that may be changed by script. Each must start in column 1 and have any parameters it takes on its line followed by white space.  Any unrecognized variable is ignored.
  6.  
  7. To request a new frame to be rendered, put an asterisk in column 1.
  8.  
  9. Keyword                        Data format
  10. brightness        (unsigned short)
  11. fog_level            (double)
  12. fog_color            (unsigned short triplet)
  13. hwratio              (double)
  14. h_factor             (double)
  15. lower_transition     (short)
  16. mountain_bottom      (unsigned short triplet)
  17. mountain_top         (unsigned short triplet)
  18. num_divides          (unsigned short)
  19. sea_level            (short)
  20. sky_top              (unsigned short triplet)
  21. sky_bottom           (unsigned short triplet)
  22. slush                (double)
  23. snow_threshold       (unsigned short)
  24. sun                  (double triplet)
  25. upper_transition     (short)
  26. water_color          (unsigned short triplet)
  27. yxlate               (long)
  28. yoffset              (long)
  29. zoffset              (long)
  30. zoom                 (double)
  31.  
  32. *
  33. Note that the sun command is a unit vector for the normal of the light source's vector direction.  This value is displayed in the control in the Illumination dialog.  As a point of interest, I force whatever triple I read into a valid unit vector, in case the data entered is in fact not a unit vector.  This should make it easier to set up a series of values.
  34.  
  35. For more information and an example fo this file format, consult the manual.
  36.